import React from "react";
import ReactDOM from "react-dom/client";
import router from "./routes";
import { Provider, useSelector } from "react-redux";
import store from "./store";
import Toast from "./components/Toast";
import "./assets/style/common.less";
import Loading from "./components/Loading";
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <Provider store={store}>
    <Toast />
    {/* <Loading /> */}
    {router}
  </Provider>
);
